package com.jumi.microservice.common.constant;

/**
 * - - - - - - - - - - - - - - -
 * 库存redis key
 * @author liuz
 * @date 2020/12/28 9:51
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
public class InventoryRedisKey {

    /**
     * 商品sku总库存 key
     */
    public static final String GOODS_SKU_STOCK = "GoodsSkuStock::";

    /**
     * 商品sku分仓 key
     */
    public static final String GOODS_SKU_WARE_STOCK = "GoodsSkuWareStock::";


    /******************************       redis中map的key        *******************************************************/

    /**
     * 商品sku主键id
     */
    public static final String GOODSSKUSTOCKID = "id";

    /**
     * 商品总库存
     */
    public static final String GOODSSKUSTORAGE = "goodsSkuStorage";

    /**
     * 商品预售库存
     */
    public static final String PRESTORAGE = "preStorage";

    /**
     * 商品预售库存累积
     */
    public static final String INITIALPRESTORAGE = "initialPreStorage";

    /**
     * 商品锁定库存
     */
    public static final String LOCKEDSTORAGE = "lockedStorage";

    /**
     * 商品销售库存 总
     */
    public static final String SALEDSTORAGE = "saledStorage";

    /**
     * 商品分仓 仓库id
     */
    public static final String WAREHOUSEID = "warehouseId";

    /**
     * 商品分仓库存
     */
    public static final String SALESTOCKQUANTITY = "saleStockQuantity";

    /**
     * 商品分仓锁定库存
     */
    public static final String LOCKEDSTOCKQUANTITY = "lockedStockQuantity";

    /**
     * 商品分仓销售
     */
    public static final String SALEDSTOCKQUANTITY = "saledStockQuantity";

    /**
     * 商品供应链申请id
     */
    public static final String SUPPLYAPPLYID = "supplyApplyId";

    /**
     * 商品类型 0: 自营, 1: 第三方
     */
    public static final String GOODS_TYPE = "goodsType";

}
